import { Base } from 'base.js'

class Common extends Base {

  constructor() {
    super();
  }

  /*图片上传*/
  upload(url, callback) {
    var allParams = {
      url: url,
      data: {},
      type: 'Post',
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(allParams);
  }
}
export { Common };